package org.nf.ssm.dao;

import org.apache.ibatis.annotations.Param;
import org.nf.ssm.domain.BookType;

import java.util.List;

/**
 * @author zhu
 * @date 2024-10-14
 */
public interface BookTypeDao {

    List<BookType> getAllBookType(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    List<BookType> getAllBookType();

    void addBookType(BookType bookType);

    void updateBookType(BookType bookType);

    void deleteBookType(Integer typeId);

    BookType getBookTypeByName(String typeName);
}
